package com.julian.adapterPattern;

public class DuckTestDrive {
    public static void main(String[] args) {
        Duck duck =  new MallardDuck();
        Turkey turkey = new WildTurkey();
        Duck turkeyadapter = new TurkeyAdapter(turkey);
        Turkey duckAdapter = new DuckAdapter(duck);
        Duck turkeyDuAdapter = new DuAdapter(duck);
        Turkey duckDuAdapter = new DuAdapter(turkey);

        System.out.println("The turkey was...");
        turkey.gobble();
        turkey.fly();

        System.out.println("\nthe duck was...");
        duck.fly();
        duck.quack();

        System.out.println("\nthe turkeyAdapter was...");
        turkeyadapter.quack();
        turkeyadapter.fly();


        System.out.println("\nthe duckAdapter was...");
        duckAdapter.fly();
        duckAdapter.gobble();

        System.out.println("\nthe turkeyDuAdapter was...");
        turkeyDuAdapter.fly();
        turkeyDuAdapter.quack();

        System.out.println("\nthe duckDuAdapter was...");
        duckDuAdapter.fly();
        duckDuAdapter.gobble();
    }
}
